<template>
  <y-form-modal title="测试">
    <a-input v-model:value="formState.title"></a-input>
    <template #footer>
      <span type="primary" @click="handleOk">qwe</span>
    </template>
  </y-form-modal>
</template>

<script setup>
defineOptions({
  name: 'TestModal',
});
import { useFormModalContext } from '@/hooks/modal/useFormModal';
const { props, resolve, reject } = useFormModalContext();

const formState = reactive({
  ...props
});
const handleOk = () => {
  resolve(formState);
}
</script>
